<template>
  <j-select-asset-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectAssetComponent from './JSelectAssetComponent'

  export default {
    name: 'JSelectAsset',
    components: { JSelectAssetComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '资产',
          displayKey: 'assetName',
          returnKeys: ['id', 'id'],
          listUrl: '/asset/assetMessage/listAll',
          queryParamCode: 'assetName',
          queryParamText: '资产名称',
          columns: [
            
            { title: '资产编码', dataIndex: 'assetCode', align: 'center', width: '50%'}, 
            { title: '资产名称', dataIndex: 'assetName', align: 'center', width: '50%'},
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>